<template>
<div>
  <div>{{name}}</div><br>
  <button @click="fanzhuan">按钮翻转</button>
</div>
</template>

<script>
export default{
  data(){
    return{
      name:'落魄山'
    }
  },
  methods:{
    fanzhuan(){
      this.name =this.name.split('').reverse().join('')
    }
  }
}
</script>

